package com.Jano.service;

import com.Jano.entity.Choice;

import java.util.List;

/**
 * description: ChoiceService <br>
 * date: 2022/6/6 7:35 PM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */
public interface ChoiceService {
    /**
     * 根据题目，创建对应答案
     * @param questionId
     * @param content
     * @param ord
     */
    void createChoice(int questionId,String content,String ord);

    /**
     * 根据题目，查找所有答案
     * @param questionId
     * @return
     */
    List<Choice> getAllChoicesByQuestionId(int questionId);
}
